import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:znmm/config/app_color.dart';

class RogionsItem extends StatelessWidget {
  const RogionsItem({
    super.key,
    required this.title,
    required this.check,
  });
  final String title;
  final bool check;

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 50.w,
      width: double.infinity,
      alignment: Alignment.centerLeft,
      padding: EdgeInsets.symmetric(horizontal: 20.w),
      decoration: BoxDecoration(
        border: Border(
          bottom: BorderSide(
            color: AppColor.greyEBEBEB,
            width: 1.w,
          ),
        ),
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Text(
            title,
            style: TextStyle(
              color: AppColor.black,
              fontSize: 16.sp,
            ),
          ),
          check
              ? Icon(
                  Icons.check,
                  color: AppColor.blue396EC6,
                  size: 20.w,
                )
              : const SizedBox(),
        ],
      ),
    );
  }
}
